-- GENERATED SPELL FOR [Minion of Terokk] --


function spell0_22376(pUnit, Event) --@Terrifying Screech,Self--
pUnit:FullCastSpellOnTarget(38021,pUnit)
pUnit:RegisterEvent('Sorts_22376', 7346, 1)
end

function Sorts_22376(pUnit, Event)
local choix_sorts_22376 = math.random(0, 0)
if choix_sorts_22376 == 0 then
pUnit:RegisterEvent('spell0_22376', 1, 1)
end
end

function mob22376_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22376', math.random(1500, 3000), 1)
end

function mob22376_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22376_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22376_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22376, 1, 'mob22376_Action')
RegisterUnitEvent(22376, 2, 'mob22376_Leave')
RegisterUnitEvent(22376, 3, 'mob22376_Kill')
RegisterUnitEvent(22376, 4, 'mob22376_Die')
